home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / intuition / sizewindow.c < prev    next >
C/C++ Source or Header  |  1996-11-08  |  2KB  |  82 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: sizewindow.c,v 1.4 1996/11/08 11:28:04 aros Exp $
  4.     $Log: sizewindow.c,v $
  5.     Revision 1.4  1996/11/08 11:28:04  aros
  6.     All OS function use now Amiga types
  7.  
  8.     Moved intuition-driver protos to intuition_intern.h
  9.  
  10.     Revision 1.3  1996/10/24 15:51:25  aros
  11.     Use the official AROS macros over the __AROS versions.
  12.  
  13.     Revision 1.2  1996/08/29 13:57:38  digulla
  14.     Commented
  15.     Moved common code from driver to Intuition
  16.  
  17.     Revision 1.1  1996/08/23 17:28:17  digulla
  18.     Several new functions; some still empty.
  19.  
  20.  
  21.     Desc:
  22.     Lang: english
  23. */
  24. #include "intuition_intern.h"
  25.  
  26. /*****************************************************************************
  27.  
  28.     NAME */
  29.     #include <clib/intuition_protos.h>
  30.  
  31.     AROS_LH3(void, SizeWindow,
  32.  
  33. /*  SYNOPSIS */
  34.     AROS_LHA(struct Window *, window, A0),
  35.     AROS_LHA(LONG           , dx, D0),
  36.     AROS_LHA(LONG           , dy, D1),
  37.  
  38. /*  LOCATION */
  39.     struct IntuitionBase *, IntuitionBase, 48, Intuition)
  40.  
  41. /*  FUNCTION
  42.     Modify the size of a window by the specified offsets.
  43.  
  44.     INPUTS
  45.     window - The window to resize.
  46.     dx - Add this to the width.
  47.     dy - Add this to the height.
  48.  
  49.     RESULT
  50.     None.
  51.  
  52.     NOTES
  53.     The resize of the window may be delayed. If you depend on the
  54.     information that is has changed size, wait for IDCMP_NEWSIZE.
  55.  
  56.     EXAMPLE
  57.  
  58.     BUGS
  59.  
  60.     SEE ALSO
  61.  
  62.     INTERNALS
  63.  
  64.     HISTORY
  65.     29-10-95    digulla automatically created from
  66.                 intuition_lib.fd and clib/intuition_protos.h
  67.  
  68. *****************************************************************************/
  69. {
  70.     AROS_LIBFUNC_INIT
  71.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  72.  
  73.     /* Call the driver before changing the window */
  74.     intui_SizeWindow (window, dx, dy);
  75.  
  76.     /* Adjust the window's attributes */
  77.     window->Width += dx;
  78.     window->Height += dy;
  79.  
  80.     AROS_LIBFUNC_EXIT
  81. } /* SizeWindow */
  82.